 

#region Copyright Statement
//////////////////////////////////////////////
//	ORMAC
//  By: Ali Ghomi (2011)
//////////////////////////////////////////////
#endregion

#region using
using System;
using System.Collections.Generic;
using ORMAC;
using ORMAC.Attributes;
using System.Runtime.Serialization;
#endregion

namespace Test
{
	/// <summary>
	/// Auto generated class by ORMAC from EmployeeTerritories table
	/// </summary>
	[Table("EmployeeTerritories")]
	[DataContract]
	public class OEmployeeTerritories
	{
		/// <summary>
		/// Auto generated property by ORMAC from EmployeeID column
		/// </summary>		
		[PrimaryKey]
		[Field("EmployeeID")]
		[DataMember]
		public int EmployeeID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated property by ORMAC from TerritoryID column
		/// </summary>		
		[PrimaryKey]
		[Field("TerritoryID")]
		[DataMember]
		public string TerritoryID{
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///EmployeeID as foreign key and EmployeeID as primary key in  Employees table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="EmployeeID",ChildCol="EmployeeID")]
		public OEmployees Employees {
			get;
			set;
		}
		/// <summary>
		/// Auto generated class property by ORMAC using
		///TerritoryID as foreign key and TerritoryID as primary key in  Territories table
		/// </summary>				
		[DataMember]
		[Join(ParentCol="TerritoryID",ChildCol="TerritoryID")]
		public OTerritories Territories {
			get;
			set;
		}

	}
}
